#ifndef _KEYBOARD_H
#define _KEYBOARD_H

#include <Defs.h>

#define PRESS_DELAY_MS  100
#define KB_ERROR        0x10
#define KB_NOT_PRESSED  0x20

#define KB_1    0x0
#define KB_2    0x1
#define KB_3    0x2
#define KB_A    0x3
#define KB_4    0x4
#define KB_5    0x5
#define KB_6    0x6
#define KB_B    0x7
#define KB_7    0x8
#define KB_8    0x9
#define KB_9    0xA
#define KB_C    0xB
#define KB_STAR 0xC
#define KB_0    0xD
#define KB_DIES 0xE
#define KB_D    0xF

//Read pressed key from keyboard
extern byte readKey(void);                                      //      

//Get key char
extern byte key(void);                                          

//Get key code
extern byte keyCode(void);

//Key is pressed
extern byte keyPressed(void);

#endif